package com.ruoyi.farmer.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 农产品商品管理对象 sku
 *
 * @author 焦博兴
 * @date 2023-09-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sku implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商品表主键 */
    private Long id;

    /** 是否删除(0-未删, 1-已删) */
    private Long isDeleted;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String skuId;

    /** 产品ID */
    @Excel(name = "产品ID")
    private String spuId;
    private String spuName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String skuName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 是否上架 0 下架 1 上架 */
    @Excel(name = "是否上架 0 下架 1 上架")
    private Long saleable;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 图片 */
    @Excel(name = "图片")
    private String images;

    /** 库存(箱,KG,袋,等等) */
    @Excel(name = "库存(箱,KG,袋,等等)")
    private Long stock;

    @Excel(name = "创建时间")
    private String createTime;
    @Excel(name = "修改时间")
    private String updateTime;
}
